const Sequelize = require("sequelize");
const db = require('../DBConfig/config');

const BannerList = db.define('banner_list', {
    id: {
        type: Sequelize.INTEGER(11),
        allowNull: false,
        primaryKey: true,
        autoIncrement: true
    },
    url: {
        type: Sequelize.INTEGER(255),
        allowNull: false
    },
    create_time: {
        type: Sequelize.DATE,
        allowNull: false
    },
    update_time: {
        type: Sequelize.DATE
    },
    pos: {
        type: Sequelize.TINYINT
    }
}, {
    freezeTableName: true,
    timestamps: false
})

module.exports = BannerList;